<?php
	$mechant = $_REQUEST['mechant']	;
$con = mysqli_connect('localhost','root','','libaiwu');
mysqli_set_charset($con,'utf8');
 
     if($mechant==0){	
	 $sql ="select * from 15103785516dingdanlh"	;	
		$result = mysqli_query($con, $sql);
		$arr = mysqli_fetch_all($result,MYSQLI_ASSOC);
		$str = json_encode($arr);
		echo $str;
     }else if($mechant==1){	
	 $sql ="select * from 15103785516dingdanDNS limit 4"	;	
		$result = mysqli_query($con, $sql);
		$arr = mysqli_fetch_all($result,MYSQLI_ASSOC);
		$str = json_encode($arr);
		echo $str;
     }
 

	
?>